package com.wit.service.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.wit.dao.SeparationDao;
import com.wit.po.Department;
import com.wit.po.Employee;
import com.wit.po.Separation;
import com.wit.service.SeparationService;

public class SeparationServiceImpl implements SeparationService {
	
	private SeparationDao separationDao;

	public SeparationDao getSeparationDao() {
		return separationDao;
	}

	public void setSeparationDao(SeparationDao separationDao) {
		this.separationDao = separationDao;
	}

	
	public boolean addSeparation(Separation separation) {
		// TODO Auto-generated method stub
		return separationDao.addSeparation(separation);
	}

	
	public boolean deleteSeparation(Separation separation) {
		// TODO Auto-generated method stub
		return separationDao.deleteSeparation(separation);
	}

	
	public List<Separation> findSeparationByCondition(DetachedCriteria dc,
			Integer startRecord, Integer pageSize) {
		// TODO Auto-generated method stub
		return separationDao.findSeparationByCondition(dc, startRecord, pageSize);
	}

	
	public Separation findSeparationById(String SeparationId) {
		// TODO Auto-generated method stub
		return separationDao.findSeparationById(SeparationId);
	}

	
	public Integer findSeparationCount(DetachedCriteria dcCount) {
		// TODO Auto-generated method stub
		return separationDao.findSeparationCount(dcCount);
	}

	
	public boolean modifySeparation(Separation separation) {
		// TODO Auto-generated method stub
		return separationDao.modifySeparation(separation);
	}

	
	public List<Department> findAllDepartment() {
		// TODO Auto-generated method stub
		return separationDao.findAllDepartment();
	}

	
	public List<Employee> findEmployeeByDepartmentId(String departmentId) {
		// TODO Auto-generated method stub
		return separationDao.findEmployeeByDepartmentId(departmentId);
	}

}
